// views/HomeView.vue
<template>
  <div>
    <h1>Home Page</h1>
    <button @click="counterStore.increment">+1</button>
    <p>{{ counterStore.count }}</p>
    <p>{{ counterStore.doubleCount }}</p>
    <hr>
    <HomeChild/>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import {useCounterStore} from '../stores/counter'
import HomeChild from './HomeChild.vue'

const counterStore = useCounterStore()
</script>
